﻿@model jsclr.Models.Program

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

    <fieldset>
        <legend>Program</legend>

        <div id="editor-fields" style="float:left">

        @using (Html.BeginForm()) {
            @Html.ValidationSummary(true)

                @Html.HiddenFor(model => model.ProgramId)
                @Html.HiddenFor(model => model.OwnerId)
        
                <div class="editor-label">
                    @Html.LabelFor(model => model.Name)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Code)
                </div>
                <div class="editor-field">
                    @Html.TextAreaFor(model => model.Code, new {cols=22, rows=30})
                    @Html.ValidationMessageFor(model => model.Code)
                </div>

                <p>
                    <input type="submit" value="Save" />
                </p>
            }
    
        </div>
    
        <div id="vm" class="vm">
            @Html.Partial("VM/VM")
        </div>

    </fieldset>


<div>
    @Html.ActionLink("Back to List", "Index")
</div>

